b173debbf5196394518467a19db108d6e383c5a6,portal-impl/test/integration/com/liferay/portal/service/UserGroupRoleServiceTest.java,UserGroupRoleServiceTest,testGroupAdminRemovingOrganizationOwnerRoleByUsers,#,234
Before Change
public void testGroupAdminRemovingOrganizationOwnerRoleByUsers()
throws Exception {
Organization organization = OrganizationTestUtil.addOrganization();
Group group = organization.getGroup();
Role role = RoleLocalServiceUtil.getRole(
TestPropsValues.getCompanyId(), RoleConstants.ORGANIZATION_OWNER);
User subjectUser = UserTestUtil.addGroupAdminUser(group);
User objectUser = UserTestUtil.addOrganizationOwnerUser(organization);
try {
deleteUserGroupRolesByUser(
After Change
public void testGroupAdminRemovingOrganizationOwnerRoleByUsers()
throws Exception {
_organization = OrganizationTestUtil.addOrganization();
Group group = _organization.getGroup();
Role role = RoleLocalServiceUtil.getRole(
TestPropsValues.getCompanyId(), RoleConstants.ORGANIZATION_OWNER);
_subjectUser = UserTestUtil.addGroupAdminUser(group);
_objectUser = UserTestUtil.addOrganizationOwnerUser(_organization);
try {
deleteUserGroupRolesByUser(